package com.example.designpattenexample.abstractfactory;

public class Client {
    public static void main(String[] args) {
        AbstractFactory factory1 = new ConcreteFactory1();
        AbstractFactory factory2 = new ConcreteFactory2();
        ProductA productA1 = factory1.factoryA();
        ProductA productA2 = factory2.factoryA();
        ProductB productB1 = factory1.factoryB();
        ProductB productB2 = factory2.factoryB();
        productA1.method1();
        productA1.method2();
        productA2.method1();
        productA2.method2();

        productB1.method1();
        productB1.method2();
        productB2.method1();
        productB2.method2();
    }
}
